﻿package com.javaPattern.Memento;

public class Caretaker {
	private MementoIF m;

	public void saveMemento(MementoIF m) {
		this.m = m;
	}

	//此函数类型与返回值必须是一致的
	public MementoIF getMemento() {
		return m;

	}
}
